package com.xinli.xinlifm.view.fragment.mine;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.xinli.xinlifm.R;
import com.xinli.xinlifm.view.activity.LoadActivity;
import com.xinli.xinlifm.view.fragment.TestFragment;

/**
 *   我的
 * Created by zz on 16-10-12.
 */

public class MineFragment extends TestFragment implements View.OnClickListener {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.mine,container,false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        TextView te = (TextView) view.findViewById(R.id.load);
        te.setOnClickListener(this);
        super.onViewCreated(view, savedInstanceState);
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent(getContext(), LoadActivity.class) ;
        view.getContext().startActivity(intent);
    }
}
